package cn.tedu.service;

import cn.tedu.pojo.Car;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//实现了接口以后，要重写接口里的抽象方法
@Service
public class CarServiceImpl implements CarService{
    @Autowired
    private Car car;

    @Override
    public Car get() {
        car.setName("BWM");
        car.setColor("红色");
        car.setPrice(320000.00);
        return car;
    }
}
